package anli;

import java.util.Arrays;

public class anli7 {
    public static void main(String[] args) {
        int[] arr={12,13,14};
        int[] arr2=shu(arr);
        copyArray(arr2);
    }

    public static void  copyArray(int[] arr) {
        System.out.println("[");
        for (int i = 0; i < arr.length; i++) {
            System.out.println(i==arr.length-1?arr[i]:arr[i]+",");
        }
        System.out.println("]");
    }


    public static int[] shu(int[] arr){
         int[] arr1=new int[arr.length];
        for (int i = 0; i < arr1.length; i++) {
              arr1[1]=arr[i];
        }
        return arr1;
    }
}
